import request from '@/utils/request.js'
import {mappingAdress } from '@/utils/util.js'
// 根据code查询用户信息
export const queryByOpenId = data => request.get(mappingAdress.get('/user/weChat/queryByOpenId'), data)
//更新账号信息
export const updateWechatUserAccount = data => request.post(mappingAdress.get('/user/weChat/updateWechatUserAccount'), data)
//删除fastdfs，文件表和用户表中身份证图片字段
export const deleteFastdfsAndFileAndUserIdCardPhoto = data => request.post('/user/weChat/deleteFastDfsAndFileAndUserIdCardPhoto?userId='+data.userId+'&fileId='+data.fileId+'&fastDfsFileId='+data.fastDfsFileId, data)
//上传身份证照片并更新用户表中身份证字段,更新文件表中的businessType和businessId
// export const uploadIdCardPhoto = data => request.post('http://183.162.246.178:8848/api/rent/user/weChat/uploadIdCardPhoto', data)